package com.adee.java.pool;

import org.apache.commons.pool2.PooledObject;
import org.apache.commons.pool2.PooledObjectFactory;

import java.sql.Connection;

public class ConnectionPooledObjectFactory implements PooledObjectFactory<Connection> {
    @Override
    public void activateObject(PooledObject<Connection> p) throws Exception {

    }

    @Override
    public void destroyObject(PooledObject<Connection> p) throws Exception {

    }

    @Override
    public PooledObject<Connection> makeObject() throws Exception {
        return null;
    }

    @Override
    public void passivateObject(PooledObject<Connection> p) throws Exception {

    }

    @Override
    public boolean validateObject(PooledObject<Connection> p) {
        return false;
    }
}
